package com.jarvis.zeng.design.pattern.decorator.listsort;

import java.util.List;

/**
 * 抽象类
 * @author zengjun
 */
public abstract class AbstractSortingWithSets implements SortingWithSets{
	/** 持有一个需要装饰的类 */
	private final SortingWithSets sortingWithSets;
 
	public AbstractSortingWithSets(SortingWithSets sortingWithSets) {
		super();
		this.sortingWithSets = sortingWithSets;
	}
 
	@Override
	public void sortingSets(List<User> list) {
		//调用被装饰的类的方法
		sortingWithSets.sortingSets(list);
	}
	
}